package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.GoodsRepertory;

public interface GoodsRepertoryMapper {
List<GoodsRepertory> selectAll();
boolean deleteByPrimaryKey(int goodsId);
/****
 * 根据商品名称查询库存id
 * @param id
 * @return
 */
GoodsRepertory selectByPrimaryKeys(String  goodsname);
/*****
 * 更新库存商品总量
 * @param goodsRepertory
 * @return
 */
int updateCount (int id);
/****
 * 添加一条商品主表信息
 * @param goodsRepertory
 * @return
 */
int insert(GoodsRepertory goodsRepertory);

boolean updatereturn(String goodsname);
boolean updataereturnan(String goodsname);
}
